1 - (Time : 1 Hour 30 minutes, Each group has a maximum of 2 children).
Computer with Python installed
Mu Editor (recommended) or any code editor
Basic computer operation knowledge.
Setting up the CPX for Circuit Python
Install the MU Editor(You can use any Editor like Visual studio,Notepad++,etc But Mu Editor is the recommended one)
Click here to download and install the MU Editor.Download latest firmware for CPX and install in board
Click here to download the UF2 package.Print Statement
Introduction of Variables in python
Variables are used to store information. You can store text, numbers, or even results of calculations.
String Variables
Integer and Float Variables
Numbers in Python can be stored as integers (whole numbers) or floats (numbers with decimals). Learn how to create both types and perform calculations with them.
Updating a Variable
Variables can be changed as your program runs. In this activity, you’ll learn how to update the value stored in a variable and see how it affects your output.
Can variables be given any name? Ask the students to find out the rules on naming variables. Ask them to name a variable as 'continue' and see what happens in code
Ask the students why they think indentation matters in Python whereas in html/css or javascript, it doesn't matter.
x = 5